﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class manage_my_newsForecast : System.Web.UI.Page
{
    protected List<Model.ForecastPost> tzlist = null;
    protected long id = ReadRequest.RequestLong("cid");
    protected long type = ReadRequest.RequestLong("type");
    protected string title = ReadRequest.RequestString("title");
   
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            inidata();
        }
    }
    private void inidata()
    {
        string sqlstr = "";
        if (type==8)
        {
            sqlstr = " and LotteryType=1 "; //1；双色球；
        }
        else if(type==9)
        {
            sqlstr = " and LotteryType=2 ";// 2；大乐透；
        }
        else if(type==10)
        {
            sqlstr = " and LotteryType=5 ";// 5；福彩3D
        }
        int totalCount4 = 0;
        tzlist = BLL.ForecastPost.GetPageListBysql(0, 20, sqlstr, out totalCount4);
    }
}